package com.example.travelservlet.user.repository;

import com.example.travelservlet.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


/**
 * @author dell
 */
public interface UserRepository extends JpaRepository<User,String> , JpaSpecificationExecutor {
    User findUserByLoginName(String loginName);
    /**
     *
     * @param loginName
     */
    void deleteByLoginName(String loginName);


}
